import request from '@/utils/request'

export class MaintenanceRecordsService {

// 查询设备维护列表
  static listMaintenance_records(query) {
    return request({
      url: '/api/sources/maintenance_records/list',
      method: 'get',
      params: query
    })
  }

// 查询设备维护详细
  static getMaintenance_records(id) {
    return request({
      url: '/api/sources/maintenance_records/' + id,
      method: 'get'
    })
  }

// 新增设备维护
  static addMaintenance_records(data) {
    return request({
      url: '/api/sources/maintenance_records',
      method: 'post',
      data: data
    })
  }

// 修改设备维护
  static updateMaintenance_records(data) {
    return request({
      url: '/api/sources/maintenance_records',
      method: 'put',
      data: data
    })
  }

// 删除设备维护
  static delMaintenance_records(id) {
    return request({
      url: '/api/sources/maintenance_records/' + id,
      method: 'delete'
    })
  }

}
